import * as DbDataType from "sequelize";
/**
  * 设备当前信息 DeviceData
  * DID DID 自增(bigint)
  * 当前数据 Current JSON(JSON)
  * UTime UTime 序号(bigint)
  * 期望数据 Expect JSON(JSON)
*/
export default {
    DID: {
        type: DbDataType.BIGINT,
        primaryKey: true,
        autoIncrement: false,
        defaultValue: 0,
        allowNull: false
    },
    Current: {
        type: DbDataType.JSON,
        primaryKey: false,
        autoIncrement: false,
        defaultValue: 0,
        allowNull: false
    },
    UTime: {
        type: DbDataType.DATE,
        primaryKey: false,
        autoIncrement: false,
        defaultValue: 0,
        allowNull: false
    },
    Expect: {
        type: DbDataType.JSON,
        primaryKey: false,
        autoIncrement: false,
        defaultValue: 0,
        allowNull: false
    },
}